package com.atguigu.team.domain;

public class PC implements Equipment{
    private String model;//机器的型号
    private String display; //显示器名称
    @Override
    public String getDescription(){
        return model+"("+display+")";
    }
    //set方法
    public void setModel(String model) {
        this.model = model;
    }
    public void setDisplay(String display){
        this.display=display;
    }
    //get方法
    public String getModel(){
        return model;
    }
    public String getDisplay(){
        return display;
    }
    //构造器
    public PC(){
    }
    public PC(String model,String display){
        this.display=display;
        this.model=model;
    }
}
